from django.urls import path
from . import views

urlpatterns = [
    # 判断用户名是否重复注册 GET /usernames/itcast/count/
    # path('usernames/itcast/count/', views.UsernameCountView.as_view()),
    path('usernames/<username:username>/count/', views.UsernameCountView.as_view()),

    # 判断手机号是否重复注册
    path('mobiles/<mobile:mobile>/count/',views.MobileConverter.as_view()),
    # 用户注册  POST http://www.meiduo.site:8000/register/
    path('register/',views.RegisterView.as_view()),

    # 用户登录
    path('login/',views.LoginView.as_view()),

    # 退出登录
    path('logout/',views.LogoutView.as_view()),

    # 用户中心
    path('info/',views.UserInfoView.as_view()),

    # 添加邮箱  PUT /emails/
    path('emails/',views.EmailView.as_view()),

    # 修改密码  PUT /password/
    path('password/',views.ChangePasswordView.as_view()),

    # 验证激活邮箱： PUT /emails/verification/
    path('emails/verification/',views.EmailActiveView.as_view()),
]
